package com.burst.reptile.modular.monitor.service.impl;

import com.burst.reptile.modular.monitor.entity.SysOperLog;
import com.burst.reptile.modular.monitor.mapper.SysOperLogMapper;
import com.burst.reptile.modular.monitor.service.ISysOperLogService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Arrays;
import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 操作日志记录 服务实现类
 * </p>
 *
 * @author wujin
 * @since 2020-05-22
 */
@Service
public class SysOperLogServiceImpl extends ServiceImpl<SysOperLogMapper, SysOperLog> implements ISysOperLogService {

	@Override
	public void insertOperlog(SysOperLog operLog) {
		this.baseMapper.insertOperlog(operLog);
	}

	@Override
	public Page<SysOperLog> selectPageOperLogList(Page<SysOperLog> page, SysOperLog operLog) {
		return this.baseMapper.selectPageOperLogList(page, operLog);
	}

	@Override
	public List<SysOperLog> selectOperLogList(SysOperLog operLog) {
		return this.baseMapper.selectOperLogList(operLog);
	}

	@Override
	public int deleteOperLogByIds(Long[] operIds) {
		return this.baseMapper.deleteBatchIds(Arrays.asList(operIds));
	}

	@Override
	public void cleanOperLog() {
		this.baseMapper.cleanOperLog();
	}

}
